package com.zqh.web.model.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@Builder
@TableName(value = "msg")
public class Msg implements Serializable {

    // ChatMessage{role=USER, content=开始, reasoningContent='null', name='null', functionCall=null, toolCalls=null, toolCallId='null'}

    private Long id;

    @TableField("room_id")
    private Long roomId;
    @TableField("role")
    private String role;
    @TableField("content")
    private String content;
    @TableField("reasoning_content")
    private String reasoningContent;
    @TableField("name")
    private String name;
    @TableField("function_call")
    private String functionCall;
    @TableField("tool_calls")
    private String toolCalls;
    @TableField("tool_call_id")
    private String toolCallId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
